//
//  TestProblem242.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/16.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

class TestProblem242: XCTestCase {
    
    var problem = Problem242()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem242_Case1() throws {
        assert(problem.isAnagram("anagram", "nagaram"))
    }
    
    func testProblem242_Case2() throws {
        XCTAssertFalse(problem.isAnagram("rat", "car"))
    }
    
}
